home *** CD-ROM | disk | FTP | other *** search
/ Top 200 Programs / Top 200 Programs.iso / Bob8 / THOMPSON / CHECKERS / PRODUCT / INSTALL.FIL < prev    next >
Text File  |  1992-11-01  |  6KB  |  297 lines

  1. ' Chinese Checkers Shareware Installation Script
  2. ' Copyright 1992, ImagiSOFT, Inc.
  3. ' October 1, 1992
  4.  
  5. ' Note:  This installation script is written for THE FINISHING TOUCH, a
  6. '        professional installation program which is also an ImagiSOFT
  7. '        product.  It is distributed with Chinese Checkers to make installation
  8. '        easier -- especially for disk vendors.
  9.  
  10. '        This script does not unpack compressed files which is a
  11. '        major feature of the program.  For more information about
  12. '        THE FINISHING TOUCH, call ImagiSOFT at (505) 275-1920.
  13. '        Our FAX number is (505) 275-9697.
  14.  
  15. '        You can download the shareware version from Software Creations BBS:
  16. '              (508) 368-7036  2400 - 9600 Baud, N, 8, 1  (33 lines)
  17. '        Download the file FINISH2?.ZIP.
  18.  
  19.  
  20. BACKGROUND 63
  21.  
  22. WINOPEN 0 2 111
  23.  
  24. ""
  25. "                brings you"
  26. ""
  27. ""
  28. " (Fully Working Shareware Evaluation Copy)"
  29.  
  30. WINUPDATE +11 +1 110
  31. "THE THOMPSON PARTNERSHIP"
  32.  
  33. WINUPDATE +9 +4 110
  34. "CHINESE CHECKERS VERSION 2.0"
  35.  
  36.  
  37. TELESCOPE ON
  38. SHADOW ON
  39. SPACE 360
  40.  
  41. :EGA_TEST
  42. VIDEO EGA
  43. JUMP.NO NO_EGA
  44.  
  45. :PROMPT
  46. DRIVE C 0 11 31 15 32 14 79
  47. PATH \CHINESE 0 11 31 15 32 14 79
  48.  
  49. EXIST ~1~2\*.*
  50. JUMP.NO UNPACK
  51.  
  52. EXIST ~1~2\CHINESE.EXE
  53. JUMP.YES UNPACK
  54.  
  55. WINOPEN 0 10 79
  56. "The directory ~1~2 already exists and contains files!"
  57. ""
  58. "   Installing Chinese Checkers in this directory will"
  59. ""
  60. "       in this directory prior to installing."
  61. ""
  62. "Are you SURE you want to install it here   Y or N?"
  63. WINUPDATE +45 +7 78
  64. "Y"
  65. WINUPDATE +50 +7 78
  66. "N"
  67. WINUPDATE +17 +4 78
  68. "DELETE ALL THE FILES"
  69. BEEP
  70. ASK +52 +7
  71. WINCLOSE
  72. JUMP.NO PROMPT
  73.  
  74. :UNPACK
  75. PROMPT OFF
  76. DELETE ~1~2\*.* 1 24 51
  77. PROMPT ON
  78. COPY ~0\CHINESE.* ~1~2\ 0 12 31
  79. JUMP.FAIL INSTALL_FAILURE
  80. COPY ~0\CC*.* ~1~2\ 0 12 31
  81. COPY ~0\VENDOR.DOC ~1~2\ 0 12 31
  82. COPY ~0\*.ME ~1~2\ 0 12 31
  83.  
  84.  
  85. :PRINT_ORDER
  86. WINOPEN 0 11 31
  87. "Would you like to PRINT the Order Form   Y or N?"
  88. WINUPDATE +43 +1 30
  89. "Y"
  90. WINUPDATE +48 +1 30
  91. "N"
  92. ASK +50 +1
  93. WINCLOSE
  94. JUMP.NO BATCH_FILE
  95.  
  96. WINOPEN 0 11 79
  97. ""
  98. "   Printing . . .  "
  99. ""
  100. PRINT ~1~2\CC_ORDER.TXT
  101. WINCLOSE
  102. JUMP.FAIL ORDER_ERROR
  103. JUMP RUN
  104.  
  105. :ORDER_ERROR
  106. WINOPEN 0 10 79
  107. "Your Printer is not responding.  Possible problems:"
  108. ""
  109. "  -- Printer is not turned on"
  110. "  -- Printer is out of paper"
  111. "  -- Printer is not attached to LPT1 (parallel port 1)"
  112. ""
  113. "Do you want to try to print again  Y or N?""
  114. WINUPDATE +37 +7 78
  115. "Y"
  116. WINUPDATE +42 +7 78
  117. "N"
  118. ASK +44 +7
  119. WINCLOSE
  120. JUMP.YES PRINT_ORDER
  121.  
  122. ' ---------------------------------
  123. ' should we write batch file y / n?
  124. ' ---------------------------------
  125.  
  126. :BATCH_FILE
  127. WINOPEN 0 10 31
  128. "Most people prefer having a batch file created which makes"
  129. "running Chinese Checkers easier.  If you answer YES to the"
  130. "next question, we will write the file ~1\CHINESE.BAT"
  131. "so that you can run Chinese Checkers from the root directory"
  132. "by entering the simple command: CHINESE."
  133. ""
  134. "Do you want us to write this batch file for you   Y or N?"
  135. WINUPDATE +40 +3 27
  136. "~1\CHINESE.BAT"
  137. WINUPDATE +34 +5 27
  138. "CHINESE"
  139. WINUPDATE +52 +7 30
  140. "Y"
  141. WINUPDATE +57 +7 30
  142. "N"
  143. ASK +59 +7
  144. WINCLOSE
  145. JUMP.NO DONE2
  146.  
  147. ' ----------------
  148. ' write batch file
  149. ' ----------------
  150.  
  151. EXIST ~1\CHINESE.BAT
  152. JUMP.NO DOS_PROMPT
  153. PROMPT OFF
  154. DELETE ~1\CHINESE.BAT 1 24 51
  155. PROMPT ON
  156.  
  157. :DOS_PROMPT
  158. DOS 3.3
  159. JUMP.NO OLD_DOS
  160.  
  161. FILE ~1\CHINESE.BAT
  162. "@~1"
  163. "@cd ~2"
  164. "@chinese"
  165. "@cd \"
  166. JUMP DONE
  167.  
  168. :OLD_DOS
  169. FILE ~1\CHINESE.BAT
  170. "echo off"
  171. "~1"
  172. "cd ~2"
  173. "cls"
  174. "chinese"
  175. "cd \"
  176.  
  177.  
  178. ' -----------------------
  179. ' successfully installed!
  180. ' -----------------------
  181.  
  182. :DONE
  183.  
  184. SHADOW ON
  185. WINOPEN 0 10 31
  186. "CHINESE CHECKERS HAS BEEN SUCCESSFULLY INSTALLED."
  187. "   To run it, enter the command  CHINESE"
  188. "   from the root directory of drive ~1."
  189. ""
  190. ""
  191. ""
  192. "Press [ENTER] to continue."
  193. WINUPDATE +35 +2 30
  194. "CHINESE"
  195. WINUPDATE +5 +5 27
  196. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  197. WINUPDATE +9 +7 30
  198. "ENTER"
  199. WAIT +28 +7
  200. WINCLOSE
  201. JUMP RUN_IT
  202.  
  203. ' -------------------------------------------------
  204. ' successfully installed (version 2, no batch file)
  205. ' -------------------------------------------------
  206.  
  207. :DONE2
  208.  
  209. SHADOW ON
  210. WINOPEN 0 11 31
  211. "CHINESE CHECKERS HAS BEEN SUCCESSFULLY INSTALLED."
  212. "   To run it, enter the command  CHINESE"
  213. "   from the ~1~2 directory."
  214. ""
  215. ""
  216. ""
  217. "Press [ENTER] to continue."
  218. WINUPDATE +35 +2 30
  219. "CHINESE"
  220. WINUPDATE +5 +5 27
  221. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  222. WINUPDATE +9 +7 30
  223. "ENTER"
  224. WAIT +28 +7
  225. WINCLOSE
  226.  
  227. :RUN_IT
  228. WINOPEN 0 11 31
  229. "Would you like to run CHINESE CHECKERS Right Now   Y or N?"
  230. WINUPDATE +53 +1 30
  231. "Y"
  232. WINUPDATE +58 +1 30
  233. "N"
  234. ASK +60 +1
  235. JUMP.NO EXIT
  236.  
  237. EXIST ~1\CHINESE.BAT
  238. JUMP.NO EXE_RUN
  239. RUN ~1\CHINESE.BAT
  240. :EXE_RUN
  241. RUN ~1~2\CHINESE.EXE
  242.  
  243. :EXIT
  244.  
  245. END
  246.  
  247. :INSTALL_FAILURE
  248.  
  249. WINOPEN 0 10 79
  250.  
  251. "THE INSTALLATION PROGRAM FAILED PRIOR TO COMPLETION!"
  252. ""
  253. "Possible reasons:"
  254. "   -- The floppy disk was damaged during shipping."
  255. "   -- Your disk drive is out of alignment."
  256. "   -- The floppy disk was removed prior to completion."
  257. ""
  258. "Press [Enter] to remove incomplete program files."
  259.  
  260. WAIT +50 +8
  261.  
  262. PROMPT OFF
  263. DELETE ~1~2\*.* 0 0 31
  264. RD ~1~2
  265. DELETE ~1\CHINESE.BAT 0 0 31
  266. PROMPT ON
  267.  
  268. WINCLOSE
  269. WINCLOSE
  270.  
  271. WINOPEN 0 0 31
  272.  
  273. "PARTIALLY INSTALLED FILES ARE NOW DELETED."
  274. ""
  275. "Please try to install the software again."
  276. ""
  277. "If you get this error message again, please"
  278. "contact your disk vendor for a replacement
  279. "disk."
  280. ""
  281. "Press [Enter] to Quit."
  282.  
  283. WAIT +9 +24
  284. EXIT
  285.  
  286.  
  287. :NO_EGA
  288.  
  289. WINOPEN 0 11 79
  290.  
  291. "CHINESE CHECKERS REQUIRES AN EGA (OR BETTER) MONITOR TO RUN."
  292. "Sorry, but it won't run on your computer."
  293. ""
  294. "      Press [Enter] to Quit."
  295.  
  296. WAIT +29 +4
  297.